import numpy as np
arr = np.array([1,2,3,4,5,6,7,8,9])
print(arr[2])
print(arr[1:5])
print(arr[:8:2])
print(arr[::3])
# 一维数组的索引与切片